/*
 * @Descripttion: 
 * @Author: yuxi
 * @Date: 2022-10-04 23:06:18
 * @LastEditors: yuxi
 * @LastEditTime: 2022-10-04 23:09:12
 */
import Vue from 'vue'
const context = require.context('./', true, /\.md$/);
export const componentRouters = context.keys().map(key => {
  if(context(key).default) {
    console.log(key)
    let keys = key.split('/')
    let componentName = keys[1] + '_' + keys[2]
    Vue.component(componentName, context(key).default)
    console.log(componentName)
  }
}) 